var o, e = require, t = module, n = exports, i = this && this.__extends || (o = function(t, e) {
    return (o = Object.setPrototypeOf || {
        __proto__: []
    } instanceof Array && function(t, o) {
        t.__proto__ = o;
    } || function(t, o) {
        for (var e in o) o.hasOwnProperty(e) && (t[e] = o[e]);
    })(t, e);
}, function(t, e) {
    function c() {
        this.constructor = t;
    }
    o(t, e), t.prototype = null === e ? Object.create(e) : (c.prototype = e.prototype, 
    new c());
}), a = this && this.__decorate || function(t, o, e, c) {
    var n, r = arguments.length, i = r < 3 ? o : null === c ? c = Object.getOwnPropertyDescriptor(o, e) : c;
    if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) i = Reflect.decorate(t, o, e, c); else for (var s = t.length - 1; 0 <= s; s--) (n = t[s]) && (i = (r < 3 ? n(i) : 3 < r ? n(o, e, i) : n(o, e)) || i);
    return 3 < r && i && Object.defineProperty(o, e, i), i;
};

Object.defineProperty(n, "__esModule", {
    value: !0
});

var r = cc._decorator, s = r.ccclass, c = r.property, l = function(o) {
    function t() {
        var t = null !== o && o.apply(this, arguments) || this;
        return t.mask = null, t.layout = null, t;
    }
    return i(t, o), t.prototype.start = function() {}, t.prototype.show = function(t) {
        cc.log("show"), this.mask.active = !0, cc.Tween.stopAllByTarget(this.layout), this.layout.y = this.node.height, 
        cc.tween(this.layout).by(.3, {
            position: cc.v3(0, -this.node.height)
        }).call(function() {
            t && t();
        }).start();
    }, t.prototype.hide = function(t) {
        cc.log("hide"), this.mask.active = !1, cc.Tween.stopAllByTarget(this.layout), this.layout.y = 0, 
        cc.tween(this.layout).by(.3, {
            position: cc.v3(0, this.node.height)
        }).call(function() {
            t && t();
        }).start();
    }, a([ c(cc.Node) ], t.prototype, "mask", void 0), a([ c(cc.Node) ], t.prototype, "layout", void 0), 
    a([ s ], t);
}(cc.Component);

n.default = l;